#include<iostream>
#include<cstdlib>
#include<string>
#include<unistd.h>

#include"Common.hpp"

using namespace std;


int main()
{
    std::string query_string;
    GetQueryString(query_string);
    std::string str1,str2;
    CutString(query_string,"&",str1,str2);

    std::string name1,value1;
    CutString(str1, "=" ,name1 ,value1);

    std::string name2,value2;
    CutString(str2, "=" ,name2 ,value2);

    int ret=atoi(value1.c_str())/atoi(value2.c_str());
    std::cerr<<name1<<" : "<<value1<<std::endl;
    std::cerr<<name2<<" : "<<value2<<std::endl;

    std::cout<<name1<<" : "<<value1<<std::endl;
    std::cout<<name2<<" : "<<value2<<std::endl;

    // std::cout<<"<!DOCTYPE html>"<<std::endl;
    // std::cout<<"<html>"<<std::endl;
    // std::cout<<"<head>"<<std::endl;
    // std::cout<<"<meta charset=\"utf-8\">"<<std::endl;
    // std::cout<<" </head>"<<std::endl;
    // std::cout<<" <body>"<<std::endl;
    // std::cout<<" <form action=\"/test_cgi\" method=\"GET\">"<<std::endl;
    // std::cout<<" "<<std::endl;
    





    return 0;
}